<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发布二手商品-柚子校园</title>
    <link href="Public/plugins/hplus/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="Public/plugins/hplus/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="Public/plugins/hplus/css/animate.css" rel="stylesheet">
    <link href="Public/plugins/hplus/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="Public/public/pace-theme-flash.css" rel="stylesheet">
    <link href="Public/home/css/public/common.css" rel="stylesheet">
	<link href="Public/plugins/hplus/css/plugins/chosen/chosen.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="Public/plugins/hplus/css/plugins/webuploader/webuploader.css">
	<link rel="stylesheet" type="text/css" href="Public/plugins/hplus/css/demo/webuploader-demo.css">
	<link rel="stylesheet" type="text/css" href="Public/home/css/release/sale.css">
	<link type="text/css" href="Public/Fonts/iconfont.css" rel="stylesheet" />
	
<style type="text/css">

        @font-face {font-family: "iconfont";
          src: url('iconfont.eot'); /* IE9*/
          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
          url('iconfont.woff') format('woff'), /* chrome, firefox */
          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
        }

        .iconfont {
          font-family:"iconfont" !important;
          font-size:16px;
          font-style:normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          -moz-osx-font-smoothing: grayscale;
        }
</style>
</head>
<body>
	<s:if test="#session.user==null">
	<script type="text/javascript">
		javascript:alert('您还未登录，请先登录。');location.href="Login.jsp";	
	</script>
				
	</s:if>
	<s:else>	
	
	<s:include value="nav.jsp"></s:include>
	
	<div class="item-box">
		<s:include value="menu.jsp"></s:include>
	</div>
    <div class="sidebar">
    <div class="btn block">
        <div class="ershou">
            <a href="Fabu">发布二手</a>
        </div>
        <div class="qiugou">
            <a href="buy">发布求购</a>
        </div>
    </div>
    
	</div>

    <div class="main" style="margin-top: 35px">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>发布求购信息</h5>
            </div>
            <div class="ibox-content">
                <form action="pur?opt=all" class="form-horizontal m-t" id="saleForm" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="p.uid" value="<s:property value="#session.user.id"/>"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">标题：</label>
                        <div class="col-sm-8">
                            <input id="title" name="p.name" class="required form-control" type="text" placeholder="请输入标题">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">详情：</label>
                        <div class="col-sm-8">
                            <textarea id="detail" name="p.introduce" placeholder="请输入详情" class="form-control" type="text" aria-required="true" aria-invalid="false" class="valid"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">交易地点：</label>
                        <div class="col-sm-8">
                            <input id="address" name="p.address" class="form-control" placeholder="宿舍、教学楼、食堂等" type="text" aria-required="true" aria-invalid="true" class="error">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">价格：</label>
                        <div class="pre-price input-group m-b col-sm-8">
                            <input id="price" name="p.price" type="text" class="form-control"> <span class="input-group-addon">元</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">学校：</label>
                        <div class="col-sm-8">
                            <select name="p.sid"  style="width:100%;height: 35px;" tabindex="2";>
                                <s:iterator value="#session.school" var="x">
                                <option value="<s:property value="#x.id"/>">
										<s:property value="#x.name"/>
								</option>
                                </s:iterator>
							</select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">分类：</label>
                        <div class="col-sm-8">
                            <select name="p.mid" style="width:100%;height: 35px;"tabindex="2">
                                 <s:iterator value="#session.menu" var="x">
                                <option value="<s:property value="#x.id"/>">
										<s:property value="#x.name"/>
								</option>
                                </s:iterator>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">手机：</label>
                        <div class="col-sm-8">
                            <input id="username" name="p.phone" class="form-control" placeholder="宿舍、教学楼、食堂等" type="text" aria-required="true" aria-invalid="true" class="error">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">QQ：</label>
                        <div class="col-sm-8">
                            <input id="username" name="p.qq" class="form-control" placeholder="宿舍、教学楼、食堂等" type="text" aria-required="true" aria-invalid="true" class="error">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <button type="submit" class="btn btn-primary btn-block">提交</button>
                        </div>
                    </div>
                   
                </form>
            </div>
        </div>
    </div>
   
	<s:include value="footer.jsp"></s:include>

   </s:else>
</body>
</html>